package com.ukao.cashregister.adapter;

import android.content.Context;
import android.widget.TextView;

import com.mcxtzhang.commonadapter.rv.CommonAdapter;
import com.mcxtzhang.commonadapter.rv.ViewHolder;
import com.ukao.cashregister.R;
import com.ukao.cashregister.bean.VipLeverBean;

import java.util.List;

/**
 * 送件方式
 */

public class FeedModeAdapter extends CommonAdapter<VipLeverBean.ListBean> {





    public FeedModeAdapter(Context context, List<VipLeverBean.ListBean> datas   ) {
        super(context, datas, R.layout.choose_time_item);
    }



    @Override
    public void convert(ViewHolder holder, VipLeverBean.ListBean item) {
        TextView   tagTxt=holder.getView(R.id.tag_txt);
        tagTxt.setText(item.getName());
        if(item.isCheck()){

                tagTxt.setBackgroundResource(R.drawable.add_list_item_checked);
                tagTxt.setTextColor(mContext.getResources().getColor(R.color.white));


        }else{

              tagTxt.setBackgroundResource(R.drawable.add_list_item);
                tagTxt.setTextColor(mContext.getResources().getColor(R.color.black));




        }








    }






}
